package com.shuo.limit.annotation;


import com.shuo.limit.enums.LimitType;

import java.lang.annotation.*;

/**
 * Created by shuoGG on 2018/9/29 0029
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface RateLimit {
    LimitType type() default LimitType.ALL;

    long limit() default 10;

    long intervalSec() default 60;
}

